package com.qixiucoding.write.data;

import com.alibaba.excel.util.ListUtils;
import com.qixiucoding.write.pojo.DemoData;

import java.util.Date;
import java.util.List;

/**
 * @Description TODO
 * @Author longhj
 * @Date 2022/11/05 星期六 21:17
 */
public class CreateData {
    public static List<DemoData> data() {
        List<DemoData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            DemoData data = new DemoData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }
}
